package qotwReader.utils;

import java.io.File;

import qotwReader.types.EbookType;

public class Filenames
{
    //private static final String htmlFileExtension = ".html";
    
    public static final String b3taAddress = "http://www.b3ta.com";
    
    public static String getFilename(EbookType ebook, String title, String date)
    {
        return getDirName(ebook) + (title + "_" + date).replaceAll("\\W", "_") + "." + ebook.toString();
    }
    
    public static String getDirName(EbookType ebook)
    {
        return ebook.toString() + File.separator;
    }
}
